package com.k2091.washcar.mapper;

import com.k2091.washcar.entity.ServiceType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2021-06-01
 */
public interface ServiceTypeMapper extends BaseMapper<ServiceType> {

    @Select("select * from service_type where id=#{id}")
    ServiceType selectById(Long id);

    @Select("select * from service_type")
    List<ServiceType> selectAll();
}
